package top.lyc829.zzl_android.ui.thing;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class ThingViewModel extends ViewModel {
    private MutableLiveData<Boolean> dynamicDoubleClickLiveData;
    private MutableLiveData<Boolean> fellowDoubleClickLiveData;
    private MutableLiveData<Boolean> travelsDoubleClickLiveData;

    public MutableLiveData<Boolean> getDynamicDoubleClickLiveData() {
        if (dynamicDoubleClickLiveData == null) {
            dynamicDoubleClickLiveData = new MutableLiveData<>();
        }
        return dynamicDoubleClickLiveData;
    }

    public MutableLiveData<Boolean> getFellowDoubleClickLiveData() {
        if (fellowDoubleClickLiveData == null) {
            fellowDoubleClickLiveData = new MutableLiveData<>();
            fellowDoubleClickLiveData.setValue(false);
        }
        return fellowDoubleClickLiveData;
    }

    public MutableLiveData<Boolean> getTravelsDoubleClickLiveData() {
        if (travelsDoubleClickLiveData == null) {
            travelsDoubleClickLiveData = new MutableLiveData<>();
        }
        return travelsDoubleClickLiveData;
    }
}